package cn.liuguohai.dianwang;

import android.os.Bundle;
import android.os.Handler;

import com.yzs.yzsbaseactivitylib.activity.YzsBaseActivity;
import com.yzs.yzsbaseactivitylib.entity.EventCenter;
import com.yzs.yzsbaseactivitylib.util.LoadingDialogUtils;

/**
 * Created by 刘国海 on 2017/5/24.
 */

public class LoadingDemo extends YzsBaseActivity{
    @Override
    protected void initContentView(Bundle bundle) {
        setContentView(R.layout.activity_main);
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initLogic() {
        LoadingDialogUtils.showLoadingDialog();
        new Handler().postDelayed(new Runnable() {
            public void run() {
                LoadingDialogUtils.cancelLoadingDialog();

            }
        }, 5000);   //5秒

    }

    @Override
    protected void getBundleExtras(Bundle bundle) {

    }

    @Override
    protected void onEventComing(EventCenter eventCenter) {

    }
}
